const { ethers } = require("hardhat")

const chainConfig = {
    5: {
        name: "Goerli",
        VrfFeedAddress: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
        mintFeed: ethers.utils.parseEther("0.01"),
        gasLimit:
            "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
        subscriptionId: "5924",
        callbackGasLimit: "500000",
        priceFee: "0xd4a33860578de61dbabdc8bfdb98fd742fa7028e",
    },
    31337: {
        name: "localhost",
        VrfFeedAddress: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
        mintFeed: ethers.utils.parseEther("0.01"),
        gasLimit:
            "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
        callbackGasLimit: "500000",
        priceFee: "0xd4a33860578de61dbabdc8bfdb98fd742fa7028e",
    },
    5777: {
        name: "gangache",
        VrfFeedAddress: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
        mintFeed: ethers.utils.parseEther("0.01"),
        gasLimit:
            "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",

        callbackGasLimit: "500000",
        priceFee: "0xd4a33860578de61dbabdc8bfdb98fd742fa7028e",
    },
}
//测试链名称数据 用于判断是否需要mocks本地预言机合约数据
const devlopmentChains = ["hardhat", "localhost", "gangache"]
//由pinata服务的IPFS节点托管的IPFS元数据
let tokenUris = [
    "ipfs://QmNW2V2Cc9PvHcrGsdANyESiDKXKBCWSeNhnxmREn8TCDf",
    "ipfs://QmWiP9iAPrhMwQbCP2dyE45AbbmzBLKUDhiWPTQB5ib9dK",
    "ipfs://QmRmzM8ABwWVXWMJiUfuDQZA1c96N6QQ7Frtuh5Wboat4w",
]
//在js中通常可以将文件中的某个模块或者const变量变为可引入的依赖(可以不引入整个js文件) 即 module.exports(XXX)
module.exports = {
    chainConfig,
    devlopmentChains,
    tokenUris,
}
